﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    public interface IUsersInfoService
    {
        public Task<int> AddUsersInfoAsync(string realName, DateTime birthday, int gender, string weChat, string tel, string address, string photo, decimal amount, int uid);
        public Task<int> UpdateUsersInfoAsync(int id, string realName, DateTime birthday, int gender, string weChat, string tel, string address, string photo, decimal amount, int uid);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteUsersInfoAsync(int id);
        public Task<List<UsersInfoDto>> GetAllUsersInfoAsync(int deleteId = 1);
        public Task<List<UsersInfoDto>> GetByNameAsync(string realName, int deleteId = 1);
        public Task<UsersInfoDto> GetByIdAsync(int id);
        public Task<UsersInfoDto> GetUserIdAsync(int userId);

    }
}
